package com.kamkor.interviewer.client.presenter;

import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;

public class MainPresenter implements Presenter {	
	private final Display display;
	
	public interface Display {
		Widget asWidget();	
	}
	
	public MainPresenter(Display display) {
		this.display = display;
	}

	@Override
	public void go(HasWidgets container) {			
		container.clear();	
		container.add(display.asWidget());		
	}
}
